package com.example.easyscript.bean.task;

import com.example.easyscript.bean.BaseBean;
import com.example.easyscript.enums.OperationStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

@Data
public class OperationBean extends BaseBean {
    @ApiModelProperty("操作名称")
    private String operationName;

    @ApiModelProperty("操作类型")
    private Byte operationType;

    @ApiModelProperty("步骤集")
    private Map<Integer, StepBean> stepBeanMap;

    @ApiModelProperty("操作集起点状态")
    private Integer startStatus;

    @ApiModelProperty("操作状态")
    private OperationStatusEnum statusEnum ;

    public int getStepSize() {
        return stepBeanMap.size();
    }

}
